package com.txw.javaCore.model.entity;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class UserOrder implements Serializable{
    private Integer id;

    @NotBlank(message = "用户名不能为空！")
    private String userName;

    @NotNull(message = "订单价格不能为空！")
    private BigDecimal price;

    private String orderNo;

    private Byte isActive=1;

    private Date createTime;

    private Integer payStatus;

    //临时测试变量
    private Long ttl;
}